#ifndef __CONFIG_H__
#define __CONFIG_H__

/* UESR0 defined macros */
/*---------------------*/
#define LED1_ID 0
#define LED2_ID 1
#define LED3_ID 2
/*---------------------*/
#define KEY1 9
#define KEY2 10
#define KEY3 11
/*---------------------*/
#define FAN_RV "200"
#define FAN_OFF "0"
static bool FAN_STATE;
/*---------------------*/
#define MOS_IP "mqtt.yyzlab.com.cn"
#define MOS_PORT 1883
#define MOS_TOPIC_CENT "1744787007602/Device2AIOTSIM"
#define MOS_TOPIC_RECV "1744796393070/AIOTSIM2APP"
#define MOS_HEARTBEAT 60
#define MOS_QOS_0 0
#define MOS_QOS_1 1
#define MOS_QOS_2 2
/*---------------------*/
static bool BUZZER_STATE;
/*---------------------*/
/*end of UESR0 defined macros*/

/* UESR1 defined macros */
#define LED1 "/sys/class/leds/led1/brightness"
#define LED2 "/sys/class/leds/led2/brightness"
#define LED3 "/sys/class/leds/led3/brightness"
/*---------------------*/
#define FAN "/sys/class/hwmon/hwmon1/pwm1"
/*---------------------*/
#define TEMP_RAW "/sys/bus/iio/devices/iio:device0/in_temp_raw"
#define TEMP_SCALE "/sys/bus/iio/devices/iio:device0/in_temp_scale"
#define TEMP_OFFSET "/sys/bus/iio/devices/iio:device0/in_temp_offset"
/*---------------------*/
#define HUM_RAW "/sys/bus/iio/devices/iio:device0/in_humidityrelative_raw"
#define HUM_SCALE "/sys/bus/iio/devices/iio:device0/in_humidityrelative_scale"
#define HUM_OFFSET "/sys/bus/iio/devices/iio:device0/in_humidityrelative_offset"
/*---------------------*/
#define VOLT_RAW "/sys/bus/iio/devices/iio:device3/in_voltage1_raw"
/*---------------------*/
#define BUZZER "/dev/input/by-path/platform-beeper-event"
/* End of UESR1 defined macros */

#endif